<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        for(var apple = 0 ; apple <= 100 ; apple++){
            for(var pear = 0 ; pear <= 100 ; pear++){
                for(var peach = 0 ; peach <= 100 ; peach++){
                    if(3 * apple + 2 * pear + 1 * peach == 200 && apple + pear + peach == 100){
                        console.log("苹果的数量是" + apple + "鸭梨的数量是" + pear + "桃子的数量是" + peach);
                    }
                }
            }
        }
    </script>
</head>
<body>
    
</body>
</html>